package com.kongjs.application.model.vo;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Set;

@Getter
@Setter
@ToString
public class UpdateUserVO {
    @NotBlank(message = "用户名称不能为空")
    private String nickname;
    @NotBlank(message = "账号名称不能为空")
    private String username;
    private String password;
    @Min(message = "启用状态 0 停用", value = 0)
    @Max(message = "启用状态 1 启用", value = 1)
    @NotNull(message = "启用状态不能为空")
    private Integer enabled;
    private Set<Long> roleIds;
    private Set<Long> groupIds;
}
